CC=gcc
CFLAGS = -Wall 

CURDIR = $(shell pwd)
SOURCEDIR = $(CURDIR)

# 目标文件
TARGET = $(CURDIR)/main
# 所有.c文件
SRC = $(wildcard $(SOURCEDIR)/*.c)
	
$(TARGET):$(SRC)
	$(CC) $(CFLAGS) -o $@ $^

.PHONY:clean
clean:
	rm -f $(TARGET)
